package top.mccat.filesystem.mapper;

import top.mccat.filesystem.bean.Account;

import java.util.List;

public interface AccountMapper {
    /**
     * method to list account
     * @param account account object
     * @return account object
     */
    public Account selectAccount(Account account);

    /**
     * method to insert account
     * @param account account object
     * @return account object
     */
    public int insertAccount(Account account);

    /**
     * method to list all accounts
     * @param account account object
     * @return all accounts
     */
    public List<Account> listAccounts(Account account);

    /**
     * method to update account
     * @param account account object
     * @return row
     */
    public int updateAccount(Account account);

    /**
     * method to delete account
     * @param account account object
     * @return row
     */
    public int deleteAccount(Account account);
}
